/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vasthu.api.domain;

import com.vasthu.gui.VstTableItemSelectable;
import java.util.Date;

/**
 *
 * @author moremada
 */
public class Stock implements VstTableItemSelectable {

    private long stockId;
    private String purchaseOrderId;
    private Date dispachedDate;
    private float purchasedPrice;
    private float quantity;
    private float unitPrice;
    private float minPrice;
    private float maxPrice;
    private float discount;
    private Date expiryDate;
    private long itemId; //FK of Item

    @Override
    public Object getValue(int col) {
        switch (col) {
            case 0:
                return getStockId();
            case 1:
                return getPurchaseOrderId();
            case 2:
                return getDispachedDate();
            case 3:
                return getPurchasedPrice();
            case 4:
                return getQuantity();
            case 5:
                return getUnitPrice();
            case 6:
                return getMinPrice();
            case 7:
                return getMaxPrice();
            case 8:
                return getDiscount();
            case 9:
                return getExpiryDate();
            default:
                return new String("");
        }
    }

    /**
     * @return the stockId
     */
    public long getStockId() {
        return stockId;
    }

    /**
     * @param stockId the stockId to set
     */
    public void setStockId(long stockId) {
        this.stockId = stockId;
    }

    /**
     * @return the purchaseOrderId
     */
    public String getPurchaseOrderId() {
        return purchaseOrderId;
    }

    /**
     * @param purchaseOrderId the purchaseOrderId to set
     */
    public void setPurchaseOrderId(String purchaseOrderId) {
        this.purchaseOrderId = purchaseOrderId;
    }

    /**
     * @return the dispachedDate
     */
    public Date getDispachedDate() {
        return dispachedDate;
    }

    /**
     * @param dispachedDate the dispachedDate to set
     */
    public void setDispachedDate(Date dispachedDate) {
        this.dispachedDate = dispachedDate;
    }

    /**
     * @return the purchasedPrice
     */
    public float getPurchasedPrice() {
        return purchasedPrice;
    }

    /**
     * @param purchasedPrice the purchasedPrice to set
     */
    public void setPurchasedPrice(float purchasedPrice) {
        this.purchasedPrice = purchasedPrice;
    }

    /**
     * @return the quantity
     */
    public float getQuantity() {
        return quantity;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(float quantity) {
        this.quantity = quantity;
    }

    /**
     * @return the unitPrice
     */
    public float getUnitPrice() {
        return unitPrice;
    }

    /**
     * @param unitPrice the unitPrice to set
     */
    public void setUnitPrice(float unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * @return the minPrice
     */
    public float getMinPrice() {
        return minPrice;
    }

    /**
     * @param minPrice the minPrice to set
     */
    public void setMinPrice(float minPrice) {
        this.minPrice = minPrice;
    }

    /**
     * @return the maxPrice
     */
    public float getMaxPrice() {
        return maxPrice;
    }

    /**
     * @param maxPrice the maxPrice to set
     */
    public void setMaxPrice(float maxPrice) {
        this.maxPrice = maxPrice;
    }

    /**
     * @return the discount
     */
    public float getDiscount() {
        return discount;
    }

    /**
     * @param discount the discount to set
     */
    public void setDiscount(float discount) {
        this.discount = discount;
    }

    /**
     * @return the expiryDate
     */
    public Date getExpiryDate() {
        return expiryDate;
    }

    /**
     * @param expiryDate the expiryDate to set
     */
    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

    /**
     * @return the itemId
     */
    public long getItemId() {
        return itemId;
    }

    /**
     * @param itemId the itemId to set
     */
    public void setItemId(long itemId) {
        this.itemId = itemId;
    }
}
